Conversation
Those are supposed to be architecture independent as far as I know. Without that change xorg-util-macros would be required in hostmakedepends and makedepends.
|
I think this is the way to forward, we may need to fix some .pc files however. |
|
Tried to build a bit with this, changing some templates to use pkgconf and building cross, focusing on qt5 as it's known to be problematic. I've found a bunch of templates building just fine:
Some failed due to unrelated reasons:
Some fail trying to run a binary from wrong prefix:
/usr/lib/pkgconfig/glib-2.0.pc: With This indeed breaks the default pkgconf behavior, but I also tested the templates that already have pkgconf defined in requirements, and everything except libportal, as discussed here worked. ..might make sense in the pkg-config wrapper, so it's defaulting to the old behavior (that should be compatible with almost all templates) Most notable, though, was the build failure of libreoffice. But it works with pkg-config (as used currently). |
[ci skip][skip ci]
As an alternative to #59948, instead of making
pkg-configthe default makepkgconfthe default. This PR is to track and figure out what would need to be changed and possibly fixed.Current major issues would be
pkgconfadding the sysroot path to all variables, including things likehost_binswhich breaks some packages using pkg-config to look up those variables.Fix would probably to separate those pkg-config calls to actually use
PKG_CONFIG_FOR_BUILDinstead ofPKG_CONFIG.